package com.example.serviceuser.service;

import com.alibaba.dubbo.config.annotation.Service;
import org.example.dubbo.api.mode.UserInfo;
import org.example.dubbo.api.service.UserService;
@Service
public class UserServiceImpl implements UserService {
    @Override
    public UserInfo get(Long id) {
        System.out.println("获取用户信息");
        UserInfo userInfo = new UserInfo();
        userInfo.setId(id);
        userInfo.setName(id+"用户");
        return userInfo;
    }
}
